package com.sc.student.service.impl;

import com.sc.student.mapper.CourseMapper;
import com.sc.student.pojo.Course;
import com.sc.student.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: edu-online
 * 描述：
 * @author: NB
 * @create: 2020-09-27 21:36
 **/
@Service
public class CourseServiceImpl implements CourseService {
    @Autowired
    CourseMapper courseMapper;

    @Override
    public List<Course> selectByCourseType(Integer tid) {
        return courseMapper.selectByCourseType(tid);
    }

    @Override
    public Course selectById(Integer id) {
        return courseMapper.selectByPrimaryKey(id);
    }
}
